<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>六西格玛知识管理</title>
<link href="<?php echo $this->baseUrl ?>/public/style/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/form-check.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/daterangepicker.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/thickbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/thickbox-compressed.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jQuery.FormValidator.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jQuery.FormValidator.js"></script>
<script type="text/javascript">
	function CheckForm() {
		return $("#form1").FormValidate();
	}
	$(document).ready(function() {
		$("#form1").SetValidateSettings({});
		$("#name").SetValidateSettings({
			FormValidate: {
				Empty: {
					Value: true,
					Message: "客户名称不能为空"
				}
			},
			Message: {
				Text: {
					Success: "",
					Error: "必须输入客户名称！"
				},
				MessageSpaceHolderID: "TipTitle"
			}
		});
	});
</script>
</head>

<body>
<!--头部-->
<?php echo $this->partial('common/header.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>

<!--主体-->
<div class="main-box" id="mainBox">
  <div class="third-menu">
    <?php echo $this->partial('common/operation.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>
  	<div class="menu-title"><span class="icon"></span>客户修改</div>
  </div>
  
  <div class="separate-line"></div>
  <div class="main-form">
    <form name="form1" id="form1" method="post" action="<?php echo $this->baseUrl ?>/company/edit?company_id=<?php echo $_GET['company_id']; ?>">
        <p>
        	<label for="name">客户名称：</label>
            <input name="name" id="name" class="input-text" value="<?php echo $this->company[0]['name']; ?>" />
            <span id="TipTitle" class="Show"></span>
        </p>
        <p>
        	<label for="category">客户类别：</label>
            <select name="category" class="input-text" id="pid_select">
            <?php foreach ($this->conf->companyType as $key => $val): ?>
            	<option value="<?php echo $key ?>" <?php if($this->company[0]['category']==$key): ?>selected='selected'<?php endif; ?>><?php echo $val; ?></option>
        	<?php endforeach; ?>
            </select>
        </p>
        <p><label for="mark">代号：</label><input name="mark" type="text" value="<?php echo $this->company[0]['mark']; ?>" class="input-text" /></p>
        <p><label for="short_name">简称：</label><input name="short_name" type="text"  value="<?php echo $this->company[0]['short_name']; ?>" class="input-text" /></p>
        <p><label for="staff_num">员工总数：</label><input name="staff_num" type="text" value="<?php echo $this->company[0]['staff_num']; ?>" class="input-text" /></p>
        <p><label for="value_num">总产值：</label><input name="value_num" type="text" value="<?php echo $this->company[0]['value_num']; ?>" class="input-text" /></p>
        <p><label for="manager">总经理：</label><input name="manager" type="text" value="<?php echo $this->company[0]['manager']; ?>" class="input-text" /></p>
        <p><label for="ass_manager">副总经理：</label><input name="ass_manager" type="text" value="<?php echo $this->company[0]['ass_manager']; ?>" class="input-text" /></p>
        <p><label for="lss_manager">LSS负责人：</label><input name="lss_manager" type="text" value="<?php echo $this->company[0]['lss_manager']; ?>" class="input-text" /></p>
        <p><label for="bb_name">专职黑带：</label><input name="bb_name" type="text" value="<?php echo $this->company[0]['bb_name']; ?>" class="input-text" /></p>
        <p><label for="linkman">联系人：</label><input name="linkman" type="text" value="<?php echo $this->company[0]['linkman']; ?>" class="input-text" /></p>
        <p><label for="phone">联系电话：</label><input name="phone" type="text" value="<?php echo $this->company[0]['phone']; ?>" class="input-text" /></p>
        <p><label for="department_phone">部门电话：</label><input name="department_phone" type="text" value="<?php echo $this->company[0]['department_phone']; ?>" class="input-text" /></p>
        <p><label for="fox">传真：</label><input name="fox" type="text" value="<?php echo $this->company[0]['fox']; ?>" class="input-text" /></p>
        <p><label for="city">客户城市：</label><input name="city" type="text" class="input-text" value="<?php echo $this->company[0]['city']; ?>" /></p>
        <p><label for="location">客户地点：</label><input name="location" type="text" class="input-text" value="<?php echo $this->company[0]['location']; ?>" /></p>
        <p><label for="postcode">客户邮编：</label><input name="postcode" type="text" class="input-text" value="<?php echo $this->company[0]['postcode']; ?>" /></p>
        <p><label for="summary">客户描述：</label><textarea name="summary" class="input-textarea" ><?php echo $this->company[0]['summary']; ?></textarea></p>
        <p><label for="pid">上级客户：</label><textarea name="pid" class="input-textarea" ><?php echo $this->company[0]['pid']; ?></textarea></p>
        <p><label>&nbsp;</label><input type="submit" class="button" style="margin-left:0" value="提 交" /></p>
    </form>
  </div>
</div>

<!--底部-->
<?php echo $this->partial('common/footer.html') ?>
</body>
</html>
